package com.ming.sportdemo.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ming.sportdemo.bean.User;
import com.ming.sportdemo.dao.UserDao;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface UserService extends IService<User> {
    public User getUserByMessage(@Param("username") String username, @Param("password") String password);
    public List<User> getAllUser(@Param("username")String username, @Param("pageStart") int pageStart, @Param("pageSize")int pageSize);
    public int getUserCounts(@Param("username")String username);
    public int updateState(@Param("id") Integer id,@Param("state") Boolean state);
    public int addUser(User user);
    public int deleteUser(@Param("id") int id);
    public int updateUser(User user);
}
